import { createStore } from 'vuex'
export default createStore({
  state: {
    id:window.localStorage.getItem('id'),
    search:'',
    shop:{}
  },
  mutations: {
    setid(state, value){
      state.id=value
    },
    setsearch(state, value){
      state.search=value
    },
    setshop(state, value){
      console.log(value);
      state.shop=value
    }
  },
  actions: {
  },
  modules: {
  }
})
